<template>
  <div>
    <el-image :src="src" class="img-container">
      <template slot="error" class="image-slot">
        <img src="../../assets/common/head.jpg" alt="">
      </template>
    </el-image>
  </div>
</template>

<script>
export default {
  name: 'ImageHolder',
  props: {
    src: {
      type: String,
      default: ''
    }
  }
}
</script>

<style>
.img-container {
  border-radius: 50%;
}
img {
  width: 100%;
}
</style>
